Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Unified Diff: appengine/ephelper/epfrontend/json.go

Issue 1750143003: Remove ephelper and other endpoints code. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/ephelper/epfrontend/error_test.go ('k') | appengine/ephelper/epfrontend/service.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/ephelper/epfrontend/json.go
diff --git a/appengine/ephelper/epfrontend/json.go b/appengine/ephelper/epfrontend/json.go
deleted file mode 100644
index a7a603359809112dbc23c8a3cb0605a828f4e991..0000000000000000000000000000000000000000
--- a/appengine/ephelper/epfrontend/json.go
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package epfrontend
-
-import (
- "encoding/json"
-)
-
-type jsonRWRawMessage struct {
- v interface{}
- raw []byte
-}
-
-var _ interface {
- json.Marshaler
- json.Unmarshaler
-} = (*jsonRWRawMessage)(nil)
-
-func (m *jsonRWRawMessage) MarshalJSON() ([]byte, error) {
- if m.raw != nil {
- return m.raw, nil
- }
- return json.Marshal(m.v)
-}
-
-func (m *jsonRWRawMessage) UnmarshalJSON(data []byte) error {
- m.raw = data
- return nil
-}
« no previous file with comments | « appengine/ephelper/epfrontend/error_test.go ('k') | appengine/ephelper/epfrontend/service.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698