Skip to content

Commit

Permalink
Remove dead code/comment (#2580)
Browse files Browse the repository at this point in the history
* Remove dead function that nobody should be using.
Fix comment.
Close #2199

* Log warning if stream option is used.
Close #2199
  • Loading branch information
abellgithub committed Jun 21, 2019
1 parent 62143d0 commit dc272f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions kernels/PipelineKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ void PipelineKernel::validateSwitches(ProgramArgs& args)

if (m_inputFile.empty())
throw pdal_error("Input filename required.");

if (m_stream)
m_log->get(LogLevel::Warning) << "Option 'stream' is obsolete. " <<
"Streaming occurs by default.\n";
}


Expand Down
8 changes: 2 additions & 6 deletions pdal/PipelineManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ class PDAL_DLL PipelineManager
Stage& parent, Options options);
Stage& makeWriter(StageCreationOptions& ops);

// returns true if the pipeline endpoint is a writer
bool isWriterPipeline() const
{ return (bool)getStage(); }

// return the pipeline reader endpoint (or nullptr, if not a reader
// pipeline)
// Return the first leaf stage of a pipeline, or nullptr if the pipeline
// is empty.
Stage* getStage() const
{
const auto& llist = leaves();
Expand Down

0 comments on commit dc272f9

Please sign in to comment.