Skip to content

Commit

Permalink
Remove unused method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Koval committed May 16, 2018
1 parent bf60e75 commit f3d138a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface TransactionState extends ReadableTransactionState

void nodeDoAddProperty( long nodeId, int newPropertyKeyId, Value value );

void nodeDoChangeProperty( long nodeId, int propertyKeyId, Value replacedValue, Value newValue );
void nodeDoChangeProperty( long nodeId, int propertyKeyId, Value newValue );

void relationshipDoReplaceProperty( long relationshipId, int propertyKeyId, Value replacedValue, Value newValue );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public void nodeDoAddProperty( long nodeId, int newPropertyKeyId, Value value )
}

@Override
public void nodeDoChangeProperty( long nodeId, int propertyKeyId, Value replacedValue, Value newValue )
public void nodeDoChangeProperty( long nodeId, int propertyKeyId, Value newValue )
{
getOrCreateNodeState( nodeId ).changeProperty( propertyKeyId, newValue );
dataChanged();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@
import static java.lang.Math.max;
import static java.lang.Math.min;
import static org.neo4j.internal.kernel.api.exceptions.schema.ConstraintValidationException.Phase.VALIDATION;
import static org.neo4j.internal.kernel.api.exceptions.schema.SchemaKernelException.OperationContext
.CONSTRAINT_CREATION;
import static org.neo4j.internal.kernel.api.exceptions.schema.SchemaKernelException.OperationContext.CONSTRAINT_CREATION;
import static org.neo4j.internal.kernel.api.schema.SchemaDescriptorPredicates.hasProperty;
import static org.neo4j.kernel.api.StatementConstants.NO_SUCH_NODE;
import static org.neo4j.kernel.api.StatementConstants.NO_SUCH_PROPERTY_KEY;
Expand Down Expand Up @@ -505,7 +504,7 @@ public Value nodeSetProperty( long node, int propertyKey, Value value )
{
//the value has changed to a new value
autoIndexing.nodes().propertyChanged( this, node, propertyKey, existingValue, value );
ktx.txState().nodeDoChangeProperty( node, propertyKey, existingValue, value );
ktx.txState().nodeDoChangeProperty( node, propertyKey, value );
updater.onPropertyChange( nodeCursor, propertyCursor, propertyKey, existingValue, value );
}
return existingValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void shouldListAddedNodePropertiesProperties() throws Exception
// Given
int propertyKeyId = 1;
Value prevValue = Values.of( "prevValue" );
state.nodeDoChangeProperty( 1L, propertyKeyId, prevValue, Values.of( "newValue" ) );
state.nodeDoChangeProperty( 1L, propertyKeyId, Values.of( "newValue" ) );
when( ops.propertyKeyGetName( propertyKeyId ) ).thenReturn( "theKey" );
long propertyId = 20L;
when( storeStatement.acquireSingleNodeCursor( 1L ) ).thenReturn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import org.neo4j.graphdb.mockfs.UncloseableDelegatingFileSystemAbstraction;
import org.neo4j.helpers.collection.Pair;
import org.neo4j.internal.kernel.api.exceptions.EntityNotFoundException;
import org.neo4j.internal.kernel.api.exceptions.TransactionFailureException;
import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.io.fs.OpenMode;
import org.neo4j.io.fs.StoreChannel;
Expand All @@ -54,7 +55,6 @@
import org.neo4j.io.pagecache.tracing.cursor.context.EmptyVersionContextSupplier;
import org.neo4j.kernel.NeoStoreDataSource;
import org.neo4j.kernel.api.KernelTransaction;
import org.neo4j.internal.kernel.api.exceptions.TransactionFailureException;
import org.neo4j.kernel.api.properties.PropertyKeyValue;
import org.neo4j.kernel.api.txstate.TransactionState;
import org.neo4j.kernel.configuration.Config;
Expand Down Expand Up @@ -319,7 +319,7 @@ private StorageProperty nodeAddProperty( long nodeId, int key, Object value )
}
else
{
transaction.nodeDoChangeProperty( nodeId, key, oldProperty.value(), property.value() );
transaction.nodeDoChangeProperty( nodeId, key, property.value() );
}
return property;
}
Expand Down

0 comments on commit f3d138a

Please sign in to comment.