Index: Src/GoogleApis.Tools.CodeGen/Decorator/ResourceDecorator/RequestDecorator/ServiceRequestFieldDecorator.cs
===================================================================
deleted file mode 100644
--- a/Src/GoogleApis.Tools.CodeGen/Decorator/ResourceDecorator/RequestDecorator/ServiceRequestFieldDecorator.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
-Copyright 2011 Google Inc
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-using System.CodeDom;
-using System.Collections.Generic;
-using System.Linq;
-
-using Google.Apis.Discovery;
-using Google.Apis.Requests;
-using Google.Apis.Testing;
-
-namespace Google.Apis.Tools.CodeGen.Decorator.ResourceDecorator.RequestDecorator
-{
- ///
- /// A decorator which implements abstract properties of the ServiceRequest class
- ///
- /// Example:
- /// public override string ResourceName { get { return ...; } }
- /// public override string MethodName { get { return ...; } }
- ///
- public class ServiceRequestFieldDecorator : IRequestDecorator
- {
- #region IRequestDecorator Members
-
- public void DecorateClass(IResource resource,
- IMethod request,
- CodeTypeDeclaration requestClass,
- CodeTypeDeclaration resourceClass)
- {
- // protected override string MethodName { get { ... } }
- var property = GenerateStringConstantPropertyOverride("MethodName", request.Name);
- requestClass.Members.Add(property);
-
- // protected override string HttpMethod { get { ... } }
- property = GenerateStringConstantPropertyOverride("HttpMethod", request.HttpMethod);
- requestClass.Members.Add(property);
-
- // protected override string RestPath { get { ... } }
- property = GenerateStringConstantPropertyOverride("RestPath", request.RestPath);
- requestClass.Members.Add(property);
- }
-
- #endregion
-
- ///
- /// Generates a property which will return a constant string.
- /// Will not do a used-name check. Assumes the name can be chosen.
- /// Example:
- /// public override string PropertyName { get { ... } }
- ///
- [VisibleForTestOnly]
- internal static CodeMemberProperty GenerateStringConstantPropertyOverride(string propertyName,
- string returnValue)
- {
- var property = new CodeMemberProperty();
- property.Name = propertyName;
- property.Type = new CodeTypeReference(typeof(string));
- property.Attributes = MemberAttributes.Public | MemberAttributes.Override;
- property.HasGet = true;
-
- // get { return "..."; }
- var returnString = new CodePrimitiveExpression(returnValue);
- property.GetStatements.Add(new CodeMethodReturnStatement(returnString));
-
- return property;
- }
- }
-}
\ No newline at end of file