| Index: common/gcloud/pubsub/pubsub.go
|
| diff --git a/common/gcloud/pubsub/pubsub.go b/common/gcloud/pubsub/pubsub.go
|
| deleted file mode 100644
|
| index 9867e32b369d5bd600df500d01d2e22bc01c1f87..0000000000000000000000000000000000000000
|
| --- a/common/gcloud/pubsub/pubsub.go
|
| +++ /dev/null
|
| @@ -1,34 +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 pubsub
|
| -
|
| -import (
|
| - "google.golang.org/cloud/pubsub"
|
| -)
|
| -
|
| -// Message is a Google Pub/Sub API message type. It's included here as a
|
| -// convenience so users don't have to import the other library in addition to
|
| -// this one.
|
| -type Message pubsub.Message
|
| -
|
| -func localMessageToPubSub(m []*Message) (ms []*pubsub.Message) {
|
| - if len(m) > 0 {
|
| - ms = make([]*pubsub.Message, len(m))
|
| - for i, msg := range m {
|
| - ms[i] = (*pubsub.Message)(msg)
|
| - }
|
| - }
|
| - return
|
| -}
|
| -
|
| -func pubSubMessageToLocal(ms []*pubsub.Message) (m []*Message) {
|
| - if len(ms) > 0 {
|
| - m = make([]*Message, len(ms))
|
| - for i, msg := range ms {
|
| - m[i] = (*Message)(msg)
|
| - }
|
| - }
|
| - return
|
| -}
|
|
|