chore!: remove unused APIs from frappe.client (#17446)

chore: remove unused APIs from `frappe.client`
This commit is contained in:
Sagar Vora 2022-07-08 05:19:39 +00:00 committed by GitHub
parent 658f5b6aa7
commit 6597dedaed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,17 +281,6 @@ def set_default(key, value, parent=None):
frappe.clear_cache(user=frappe.session.user)
@frappe.whitelist(methods=["POST", "PUT"])
def make_width_property_setter(doc):
"""Set width Property Setter
:param doc: Property Setter document with `width` property"""
if isinstance(doc, str):
doc = json.loads(doc)
if doc["doctype"] == "Property Setter" and doc["property"] == "width":
frappe.get_doc(doc).insert(ignore_permissions=True)
@frappe.whitelist(methods=["POST", "PUT"])
def bulk_update(docs):
"""Bulk update documents
@ -414,11 +403,6 @@ def attach_file(
return file
@frappe.whitelist()
def get_hooks(hook, app_name=None):
return frappe.get_hooks(hook, app_name)
@frappe.whitelist()
def is_document_amended(doctype, docname):
if frappe.permissions.has_permission(doctype):