summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-03-20 17:13:00 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-20 20:55:32 +0200
commitc6abca289bc2d72cd054615bc68a4f6b448814d8 (patch)
tree6978cb789a77918efc896fa39adf394e1531b7ae
parent0078d808a2a2b01c634483ca4a986f52ffe1ce3c (diff)
downloadmeson-c6abca289bc2d72cd054615bc68a4f6b448814d8.tar.gz
envconfig: remove unused parse_datafile()
The cross-file cleanup meant this function is no longer used, so remove it.
-rw-r--r--mesonbuild/envconfig.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 609899c23..e211945f4 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -69,16 +69,6 @@ CPU_FAMILES_64_BIT = [
class MesonConfigFile:
@classmethod
- def parse_datafile(cls, filename):
- config = configparser.ConfigParser()
- try:
- with open(filename, 'r') as f:
- config.read_file(f, filename)
- except FileNotFoundError:
- raise EnvironmentException('File not found: %s.' % filename)
- return cls.from_config_parser(config)
-
- @classmethod
def from_config_parser(cls, parser: configparser.ConfigParser):
out = {}
# This is a bit hackish at the moment.