Browse Source

runtime: data_directory - removed unsafe set_known_content_ids dispatchable

Mokhtar Naamani 4 years ago
parent
commit
815ba1d7a1
1 changed files with 0 additions and 9 deletions
  1. 0 9
      runtime-modules/storage/src/data_directory.rs

+ 0 - 9
runtime-modules/storage/src/data_directory.rs

@@ -278,15 +278,6 @@ decl_module! {
                 .collect();
             <KnownContentIds<T>>::put(upd_content_ids);
         }
-
-        /// Sets the content id from the list of known content ids. Requires root privileges.
-        fn set_known_content_id(origin, content_ids: Vec<T::ContentId>) {
-            ensure_root(origin)?;
-
-            // == MUTATION SAFE ==
-
-            <KnownContentIds<T>>::put(content_ids);
-        }
     }
 }