From f27d5ad7256684203a14fb2b77b70e98a5e8d56d Mon Sep 17 00:00:00 2001 From: slush0 Date: Thu, 28 Apr 2016 03:28:23 +0200 Subject: [PATCH] Remove unused code --- src/lib/protobuf/protobuf.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib/protobuf/protobuf.py b/src/lib/protobuf/protobuf.py index d027a0c34f..f36ec9a4e5 100644 --- a/src/lib/protobuf/protobuf.py +++ b/src/lib/protobuf/protobuf.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - # Implements the Google's protobuf encoding. # eigenein (c) 2011 # http://eigenein.me/protobuf/ @@ -77,9 +74,6 @@ FLAG_REQUIRED_MASK = 1 FLAG_SINGLE = 0 FLAG_REPEATED = 2 FLAG_REPEATED_MASK = 6 -FLAG_PRIMITIVE = 0 -FLAG_EMBEDDED = 8 -FLAG_EMBEDDED_MASK = 8 class EofWrapper: # Wraps a stream to raise EOFError instead of just returning of ''. @@ -151,7 +145,8 @@ class MessageType: raise ValueError('The field with the tag %s is required but a value is missing.' % tag) def load(self, fp): - fp, message = EofWrapper(fp), self.__call__() # Wrap fp and create a new instance. + fp = EofWrapper(fp) + message = self.__call__() while True: try: tag, wire_type = _unpack_key(UVarintType.load(fp))