Skip to content

Commit

Permalink
fix(field): remove unused method
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Nov 19, 2018
1 parent 0bb64c5 commit 5a1bfe7
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 74 deletions.
7 changes: 0 additions & 7 deletions inc/fieldinterface.class.php
Expand Up @@ -95,13 +95,6 @@ public function getValueForDesign();
*/
public function getValueForTargetText();

/**
* Get the value of the field for use in a field of a target
*
* @return string
*/
public function getValueForTargetField();

/**
* Gets the documents IDs
*
Expand Down
3 changes: 0 additions & 3 deletions inc/fields/actorfield.class.php
Expand Up @@ -150,9 +150,6 @@ public function getValueForTargetText() {
return implode(', ', Toolbox::addslashes_deep($value));
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/checkboxesfield.class.php
Expand Up @@ -220,10 +220,6 @@ public function getValueForTargetText() {
return $value;
}

public function getValueForTargetField() {
return null;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/datefield.class.php
Expand Up @@ -74,10 +74,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep(Html::convDate($this->value));
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/datetimefield.class.php
Expand Up @@ -77,10 +77,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep(Html::convDateTime($this->value));
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/descriptionfield.class.php
Expand Up @@ -59,10 +59,6 @@ public function getValueForTargetText() {
return '';
}

public function getValueForTargetField() {
return '';
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/dropdownfield.class.php
Expand Up @@ -162,10 +162,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/emailfield.class.php
Expand Up @@ -84,10 +84,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($this->value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/filefield.class.php
Expand Up @@ -94,10 +94,6 @@ public function getDocumentsForTarget() {
return $this->uploadData;
}

public function getValueForTargetField() {
return $this->uploadData;
}

public function isValid() {
if (!$this->isRequired()) {
return true;
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/floatfield.class.php
Expand Up @@ -82,10 +82,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($this->value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/hiddenfield.class.php
Expand Up @@ -73,10 +73,6 @@ public function getValueForTargetText() {
return str_replace("\n", '\r\n', Toolbox::addslashes_deep($this->value));
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/hostnamefield.class.php
Expand Up @@ -38,10 +38,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($this->value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/integerfield.class.php
Expand Up @@ -82,10 +82,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($this->value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/ipfield.class.php
Expand Up @@ -76,10 +76,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($this->value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/multiselectfield.class.php
Expand Up @@ -189,10 +189,6 @@ public function getValueForTargetText() {
return $value;
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/radiosfield.class.php
Expand Up @@ -170,10 +170,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($this->value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/textfield.class.php
Expand Up @@ -82,10 +82,6 @@ public function getValueForTargetText() {
return Toolbox::addslashes_deep($this->value);
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down
4 changes: 0 additions & 4 deletions inc/fields/urgencyfield.class.php
Expand Up @@ -128,10 +128,6 @@ public function getValueForTargetText() {
return $available[$this->value];
}

public function getValueForTargetField() {
return $this->value;
}

public function getDocumentsForTarget() {
return [];;
}
Expand Down

0 comments on commit 5a1bfe7

Please sign in to comment.