Page MenuHomePhabricator

D21543.diff
No OneTemporary

D21543.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -6115,7 +6115,6 @@
'PhabricatorPolicyInterface',
'PhabricatorApplicationTransactionInterface',
'PhabricatorProjectInterface',
- 'AlmanacPropertyInterface',
'PhabricatorDestructibleInterface',
'PhabricatorNgramsInterface',
'PhabricatorConduitResultInterface',
diff --git a/src/applications/almanac/storage/AlmanacNamespace.php b/src/applications/almanac/storage/AlmanacNamespace.php
--- a/src/applications/almanac/storage/AlmanacNamespace.php
+++ b/src/applications/almanac/storage/AlmanacNamespace.php
@@ -6,7 +6,6 @@
PhabricatorPolicyInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorProjectInterface,
- AlmanacPropertyInterface,
PhabricatorDestructibleInterface,
PhabricatorNgramsInterface,
PhabricatorConduitResultInterface {
@@ -17,13 +16,10 @@
protected $viewPolicy;
protected $editPolicy;
- private $almanacProperties = self::ATTACHABLE;
-
public static function initializeNewNamespace() {
return id(new self())
->setViewPolicy(PhabricatorPolicies::POLICY_USER)
- ->setEditPolicy(PhabricatorPolicies::POLICY_ADMIN)
- ->attachAlmanacProperties(array());
+ ->setEditPolicy(PhabricatorPolicies::POLICY_ADMIN);
}
protected function getConfiguration() {
@@ -113,53 +109,6 @@
}
-/* -( AlmanacPropertyInterface )------------------------------------------- */
-
-
- public function attachAlmanacProperties(array $properties) {
- assert_instances_of($properties, 'AlmanacProperty');
- $this->almanacProperties = mpull($properties, null, 'getFieldName');
- return $this;
- }
-
- public function getAlmanacProperties() {
- return $this->assertAttached($this->almanacProperties);
- }
-
- public function hasAlmanacProperty($key) {
- $this->assertAttached($this->almanacProperties);
- return isset($this->almanacProperties[$key]);
- }
-
- public function getAlmanacProperty($key) {
- return $this->assertAttachedKey($this->almanacProperties, $key);
- }
-
- public function getAlmanacPropertyValue($key, $default = null) {
- if ($this->hasAlmanacProperty($key)) {
- return $this->getAlmanacProperty($key)->getFieldValue();
- } else {
- return $default;
- }
- }
-
- public function getAlmanacPropertyFieldSpecifications() {
- return array();
- }
-
- public function newAlmanacPropertyEditEngine() {
- throw new PhutilMethodNotImplementedException();
- }
-
- public function getAlmanacPropertySetTransactionType() {
- throw new PhutilMethodNotImplementedException();
- }
-
- public function getAlmanacPropertyDeleteTransactionType() {
- throw new PhutilMethodNotImplementedException();
- }
-
-
/* -( PhabricatorPolicyInterface )----------------------------------------- */

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 5, 2:21 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7225755
Default Alt Text
D21543.diff (2 KB)

Event Timeline