Skip to content

Commit

Permalink
Remove Skipped modifier (undocumented and no longer necessary)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Jan 19, 2025
1 parent 064eee6 commit 7f92fb1
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 575 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Removed

- `DefaultProcessor` - automatic meta cache reset after main `process()` call (performance optimization)
- `Skipped` modifier and the related code - it was an undocumented feature that is no longer necessary

## [0.2.0](https://github.com/orisai/object-mapper/compare/0.1.0...0.2.0) - 2024-06-22

Expand Down
22 changes: 0 additions & 22 deletions src/Context/ProcessorCallContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ final class ProcessorCallContext

private RuntimeMeta $meta;

/** @var array<int|string, SkippedFieldContext> */
private array $skippedFields = [];

/**
* @param ObjectHolder<T> $objectHolder
*/
Expand All @@ -42,23 +39,4 @@ public function getMeta(): RuntimeMeta
return $this->meta;
}

/**
* @param int|string $fieldName
*/
public function addSkippedField(
$fieldName,
SkippedFieldContext $skippedFieldContext
): void
{
$this->skippedFields[$fieldName] = $skippedFieldContext;
}

/**
* @return array<int|string, SkippedFieldContext>
*/
public function getSkippedFields(): array
{
return $this->skippedFields;
}

}
45 changes: 0 additions & 45 deletions src/Context/SkippedFieldContext.php

This file was deleted.

47 changes: 0 additions & 47 deletions src/Context/SkippedFieldsContext.php

This file was deleted.

13 changes: 0 additions & 13 deletions src/Context/TypeContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,4 @@ public function createClone(): self
return $clone;
}

/**
* @return static
*
* @internal
*/
public function createCloneWithOptions(Options $options): self
{
$clone = clone $this;
$clone->options = $options;

return $clone;
}

}
28 changes: 0 additions & 28 deletions src/Modifiers/Skipped.php

This file was deleted.

23 changes: 0 additions & 23 deletions src/Modifiers/SkippedModifier.php

This file was deleted.

Loading

0 comments on commit 7f92fb1

Please sign in to comment.