Remove redundant friend class statements

This commit is contained in:
m-holger 2022-12-04 14:36:34 +00:00 committed by Jay Berkenbilt
parent ff42ea4e6c
commit 008364a9a4
6 changed files with 0 additions and 13 deletions

View File

@ -886,7 +886,6 @@ class QPDF
qpdf->resolve(og);
}
};
friend class Resolver;
// StreamCopier class is restricted to QPDFObjectHandle so it can
// copy stream data.
@ -904,7 +903,6 @@ class QPDF
qpdf->copyStreamData(dest, src);
}
};
friend class Resolver;
// The ParseGuard class allows QPDFObjectHandle to detect
// re-entrant parsing.
@ -928,7 +926,6 @@ class QPDF
}
QPDF* qpdf;
};
friend class ParseGuard;
// Pipe class is restricted to QPDF_Stream
class Pipe
@ -957,7 +954,6 @@ class QPDF
will_retry);
}
};
friend class Pipe;
// For testing only -- do not add to DLL
static bool test_json_validators();
@ -1106,7 +1102,6 @@ class QPDF
QPDF* qpdf;
std::set<QPDFObjGen>::const_iterator iter;
};
friend class ResolveRecorder;
class JSONReactor: public JSON::Reactor
{
@ -1173,7 +1168,6 @@ class QPDF
std::vector<QPDFObjectHandle> object_stack;
std::set<QPDFObjGen> reserved;
};
friend class JSONReactor;
void parse(char const* password);
void inParse(bool);

View File

@ -382,7 +382,6 @@ class QPDFJob
}
QPDFJob& o;
};
friend class Config;
// Return a top-level configuration item. See CONFIGURATION above
// for details. If an invalid configuration is created (such as

View File

@ -1504,7 +1504,6 @@ class QPDFObjectHandle
return QPDFObjectHandle(obj);
}
};
friend class Factory;
// Accessor for raw underlying object -- only QPDF is allowed to
// call this.
@ -1533,7 +1532,6 @@ class QPDFObjectHandle
return oh.asStream();
}
};
friend class ObjAccessor;
// Provide access to specific classes for recursive
// disconnected().
@ -1550,7 +1548,6 @@ class QPDFObjectHandle
o.disconnect();
}
};
friend class Resetter;
// Convenience routine: Throws if the assumption is violated. Your
// code will be better if you call one of the isType methods and

View File

@ -76,7 +76,6 @@ class QPDFOutlineDocumentHelper: public QPDFDocumentHelper
return dh.checkSeen(og);
}
};
friend class Accessor;
private:
bool checkSeen(QPDFObjGen const& og);

View File

@ -93,7 +93,6 @@ class QPDFOutlineObjectHelper: public QPDFObjectHelper
return QPDFOutlineObjectHelper(oh, dh, depth);
}
};
friend class Accessor;
private:
QPDF_DLL

View File

@ -550,7 +550,6 @@ class QPDFWriter
std::shared_ptr<Buffer>* bp;
std::string stack_id;
};
friend class PipelinePopper;
unsigned int bytesNeeded(long long n);
void writeBinary(unsigned long long val, unsigned int bytes);