Remove obsolete NamingConversions.template TINKERPOP-1901 CTR
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/09fd327a Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/09fd327a Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/09fd327a Branch: refs/heads/TINKERPOP-1595 Commit: 09fd327abbe142e6ca33d78148d9c1820f85a197 Parents: a4c5a21 Author: Florian Hockmann <[email protected]> Authored: Fri Apr 27 09:22:51 2018 +0200 Committer: Florian Hockmann <[email protected]> Committed: Fri Apr 27 09:22:51 2018 +0200 ---------------------------------------------------------------------- gremlin-dotnet/glv/NamingConversions.template | 50 ---------------------- 1 file changed, 50 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/09fd327a/gremlin-dotnet/glv/NamingConversions.template ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/glv/NamingConversions.template b/gremlin-dotnet/glv/NamingConversions.template deleted file mode 100644 index 201e74b..0000000 --- a/gremlin-dotnet/glv/NamingConversions.template +++ /dev/null @@ -1,50 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -#endregion - -using System.Collections.Generic; - -// THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml -namespace Gremlin.Net.Process.Traversal -{ - internal static class NamingConversions - { - /// <summary> - /// Gets the Java name equivalent for a given enum value - /// </summary> - internal static string GetEnumJavaName(string typeName, string value) - { - var key = \$"{typeName}.{value}"; - string javaName; - if (!CSharpToJavaEnums.TryGetValue(key, out javaName)) - { - throw new KeyNotFoundException(\$"Java name for {key} not found"); - } - return javaName; - } - - internal static readonly IDictionary<string, string> CSharpToJavaEnums = new Dictionary<string, string> - { - <%= body %> - }; - } -} \ No newline at end of file
