Remove unused fields/member functions from unit test.

llvm-svn: 205469
This commit is contained in:
Rui Ueyama 2014-04-02 21:49:27 +00:00
parent 27435b3b8a
commit 88c8599de9
1 changed files with 4 additions and 13 deletions

View File

@ -62,23 +62,14 @@ private:
class InputGraphTest : public testing::Test {
public:
InputGraphTest() {
_inputGraph.reset(new InputGraph());
_context.setInputGraph(std::move(_inputGraph));
_ctx.setInputGraph(std::unique_ptr<InputGraph>(new InputGraph()));
}
virtual LinkingContext &linkingContext() { return _context; }
InputElement &inputElement(unsigned index) {
return linkingContext().inputGraph()[index];
}
virtual InputGraph &inputGraph() { return linkingContext().inputGraph(); }
int inputFileCount() { return linkingContext().inputGraph().size(); }
InputGraph &inputGraph() { return _ctx.inputGraph(); }
int inputFileCount() { return _ctx.inputGraph().size(); }
protected:
MyLinkingContext _context;
std::unique_ptr<InputGraph> _inputGraph;
MyLinkingContext _ctx;
};
} // end anonymous namespace