# HG changeset patch # User Sebastien Jodogne # Date 1779524911 -7200 # Node ID d421e94b835490753d34a380e8b1b84415b18695 # Parent fac0030a508e00a0df4e951110dbe7deb2ea14b4 cleaning diff -r fac0030a508e -r d421e94b8354 OrthancFramework/Sources/DataSource/DataSourceAnswer.h --- a/OrthancFramework/Sources/DataSource/DataSourceAnswer.h Sat May 23 10:24:59 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DataSourceAnswer.h Sat May 23 10:28:31 2026 +0200 @@ -60,7 +60,6 @@ std::unique_ptr error_; boost::shared_ptr budget_; size_t memorySize_; - std::unique_ptr userData_; Item(IDataIdentifier* id /* takes ownership */, boost::shared_ptr& value, @@ -75,16 +74,6 @@ const IDataIdentifier& GetId() const; - bool HasUserData() const - { - return userData_.get() != NULL; - } - - IDynamicObject* ReleaseUserData() - { - return userData_.release(); - } - const boost::shared_ptr& GetValue() const; }; diff -r fac0030a508e -r d421e94b8354 OrthancFramework/Sources/DataSource/DataSourceReader.cpp --- a/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Sat May 23 10:24:59 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Sat May 23 10:28:31 2026 +0200 @@ -207,13 +207,6 @@ } - boost::shared_ptr DataSourceReader::ReadSingle(IDataIdentifier* id /* takes ownership */) - { - std::unique_ptr item(ReadSingleWithIdentifier(id)); - return item->GetValue(); - } - - DataSourceAnswer::Item* DataSourceReader::ReadSingleWithIdentifier(IDataIdentifier* id /* takes ownership */) { std::unique_ptr protection(id); diff -r fac0030a508e -r d421e94b8354 OrthancFramework/Sources/DataSource/DataSourceReader.h --- a/OrthancFramework/Sources/DataSource/DataSourceReader.h Sat May 23 10:24:59 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DataSourceReader.h Sat May 23 10:28:31 2026 +0200 @@ -67,9 +67,6 @@ boost::shared_ptr Submit(DataSourceRequest* request /* takes ownership */); - // TODO-Streaming REMOVE - boost::shared_ptr ReadSingle(IDataIdentifier* id /* takes ownership */); - DataSourceAnswer::Item* ReadSingleWithIdentifier(IDataIdentifier* id /* takes ownership */); void Stop() diff -r fac0030a508e -r d421e94b8354 OrthancFramework/Sources/DataSource/IDataIdentifier.h --- a/OrthancFramework/Sources/DataSource/IDataIdentifier.h Sat May 23 10:24:59 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/IDataIdentifier.h Sat May 23 10:28:31 2026 +0200 @@ -46,7 +46,5 @@ virtual bool HasUserData() const = 0; virtual const IDynamicObject& GetUserData() const = 0; - - virtual IDynamicObject* ReleaseUserData() = 0; }; }