Skip to content

Commit

Permalink
Replace unnecessary shared_ptr.
Browse files Browse the repository at this point in the history
Remove unused variable.
  • Loading branch information
Darych committed Dec 22, 2023
1 parent 6579087 commit b8acf67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions ydb/library/yql/dq/actors/spilling/channel_storage_actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

#include <ydb/library/actors/core/actor.h>

#include <memory>

namespace NYql::NDq {

class IDqChannelStorageActor
{
public:
using TPtr = std::shared_ptr<IDqChannelStorageActor>;
using TPtr = TIntrusivePtr<IDqChannelStorageActor>;
using TWakeUpCallback = std::function<void()>;

virtual ~IDqChannelStorageActor() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ class TOutputChannelReader {
bool changed = false;
bool isChanFinished = false;
i64 remain = ToPopSize;
ui32 dataSize = 0;
bool hasData = true;
TOutputChannelReadResult result;

Expand All @@ -146,7 +145,6 @@ class TOutputChannelReader {
}

hasData = lastPop.GetResult();
dataSize = data.Size();
isChanFinished = !hasData && Channel->IsFinished();
changed = changed || hasData || (isChanFinished != WasFinished);
if (hasData) {
Expand Down

0 comments on commit b8acf67

Please sign in to comment.