Skip to content

Commit

Permalink
Minor code clean up
Browse files Browse the repository at this point in the history
- removed commented out unused variables
  • Loading branch information
sogko committed May 5, 2016
1 parent ee2f8c6 commit c4394ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ type ExecutionContext struct {

func buildExecutionContext(p BuildExecutionCtxParams) (*ExecutionContext, error) {
eCtx := &ExecutionContext{}
// operations := map[string]ast.Definition{}
var operation *ast.OperationDefinition
fragments := map[string]ast.Definition{}

Expand Down
5 changes: 0 additions & 5 deletions union_interface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ func TestUnionIntersectionTypes_AllowsFragmentConditionsToBeAbstractTypes(t *tes
}
func TestUnionIntersectionTypes_GetsExecutionInfoInResolver(t *testing.T) {

//var encounteredSchema *graphql.Schema
//var encounteredRootValue interface{}

var personType2 *graphql.Object

namedType2 := graphql.NewInterface(graphql.InterfaceConfig{
Expand All @@ -510,8 +507,6 @@ func TestUnionIntersectionTypes_GetsExecutionInfoInResolver(t *testing.T) {
},
},
ResolveType: func(value interface{}, info graphql.ResolveInfo) *graphql.Object {
//encounteredSchema = &info.Schema
//encounteredRootValue = info.RootValue
return personType2
},
})
Expand Down

0 comments on commit c4394ae

Please sign in to comment.