plugin/builder: remove unused to_json method
Since the switch to requests, with its support for dictionary to json conversion, this method is no longer necessary.
This commit is contained in:
parent
f930691d86
commit
e2d0f49610
1 changed files with 0 additions and 7 deletions
|
|
@ -17,7 +17,6 @@ alone client for composer's API.
|
|||
|
||||
import configparser
|
||||
import enum
|
||||
import json
|
||||
import sys
|
||||
import time
|
||||
import urllib.parse
|
||||
|
|
@ -117,12 +116,6 @@ class ComposeRequest:
|
|||
]
|
||||
}
|
||||
|
||||
def to_json(self, encoding=None):
|
||||
data = json.dumps(self.as_dict())
|
||||
if encoding:
|
||||
data = data.encode('utf-8')
|
||||
return data
|
||||
|
||||
|
||||
class ImageStatus(enum.Enum):
|
||||
SUCCESS = "success"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue