From 535ae75f7b02b0d7adf76ed18f7f045efd54947c Mon Sep 17 00:00:00 2001 From: Hans Wennborg <hans@hanshq.net> Date: Fri, 6 Sep 2013 16:48:57 +0000 Subject: [PATCH] Remove unused method Job::AddCommand. I was going to update the comment referring to PipedJob, which was removed some time ago, but then it turned out that this method is not actually used at all. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190171 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Job.h | 4 ---- lib/Driver/Job.cpp | 5 ----- 2 files changed, 9 deletions(-) diff --git a/include/clang/Driver/Job.h b/include/clang/Driver/Job.h index b9a732db3b3..68d6a66baab 100644 --- a/include/clang/Driver/Job.h +++ b/include/clang/Driver/Job.h @@ -38,10 +38,6 @@ public: virtual ~Job(); JobClass getKind() const { return Kind; } - - /// addCommand - Append a command to the current job, which must be - /// either a piped job or a job list. - void addCommand(Command *C); }; /// Command - An executable path/name and argument vector to diff --git a/lib/Driver/Job.cpp b/lib/Driver/Job.cpp index 61e7d983035..2906ef9290e 100644 --- a/lib/Driver/Job.cpp +++ b/lib/Driver/Job.cpp @@ -32,8 +32,3 @@ JobList::~JobList() { void JobList::clear() { DeleteContainerPointers(Jobs); } - -void Job::addCommand(Command *C) { - cast<JobList>(this)->addJob(C); -} - -- GitLab