
64 S.E.2d 551 (1951)
233 N.C. 472
COUNCIL
v.
DICKERSON'S, Inc.
No. 451.
Supreme Court of North Carolina.
April 18, 1951.
*552 Simms & Simms and John M. Simms, Raleigh, for plaintiff, appellee.
Bickett & Banks, Raleigh, for defendant, appellant.
ERVIN, Justice.
Motions to strike out separate parts of pleadings are sanctioned by this provision of the Code of Civil Procedure: "If irrelevant or redundant matter is inserted in a pleading, it may be stricken out on motion of any person aggrieved thereby, but this motion must be made before answer or demurrer, or before an extension of time to plead is granted." G.S. § 1-153.
Matter in a pleading is irrelevant within the purview of the statute if it has no substantial relation to the controversy between the parties in the particular action. Howell v. Ferguson, 87 N.C. 113.
No occasion arises in the instant case for us to express any opinion as to whether the plaintiff can sue the defendant for breach of its contract with the State Highway and Public Works Commission. This is so for the very simple reason that the plaintiff sues for a tort and bases her action upon the complaint that she suffered personal injury and property damage as the proximate consequence of the negligence of the defendant in pursuing an affirmative course of conduct, i. e., paving a highway.
Although the plaintiff sues in tort and not in contract, the contract between the defendant and the State Highway and Public Works Commission created the state of things which furnished the occasion for the tort for reasons stated below. Jackson v. Control Torpedo Co., 117 Okl. 245, 246 P. 426, 46 A.L.R. 338.
*553 The law imposes upon every person who enters upon an active course of conduct the positive duty to exercise ordinary care to protect others from harm, and calls a violation of that duty negligence. It is immaterial whether the person acts in his own behalf or under a contract with another. Prosser on Torts, section 33.
When the defendant undertook to perform the promised work under his contract with the State Highway and Public Works Commission, the positive legal duty devolved upon him to exercise ordinary care for the safety of the general public traveling over the road on which he was working. Furlough v. Nash County Highway Commission, 195 N.C. 365, 142 S.E. 230, rehearing denied in 196 N.C. 160, 144 S.E. 693; Evans v. Shea Bros. Construction Co., 194 N.C. 31, 138 S.E. 411; Hughes v. Robert G. Lassiter & Co., 193 N.C. 651, 137 S.E. 806; Kehm v. Dilts, 222 Iowa 826, 270 N.W. 388; Toler v. Hawkins, 188 Okl. 58, 105 P.2d 1041.
The judge rightly refused to strike out the bare allegation of paragraph 3 of the complaint that the defendant contracted with the State Highway and Public Works Commission to "hard-surface * * the Apex-McCullers Road." That allegation must be read in combination with succeeding allegations of the complaint that the plaintiff was injured in her person and property by the negligent conduct of the defendant while it was actually working on the road under its contract with the Commission. When these allegations are thus read, they state facts showing that the defendant owed the plaintiff as a member of the traveling public the positive legal duty to exercise ordinary care to protect her from harm at the time and place named in the complaint because it was then and there engaged in an active course of conduct, i. e., paving a highway, under its contract with the State Highway and Public Works Commission; that the defendant violated this legal duty; and that such violation of this legal duty proximately resulted in injury to the plaintiff's person and property. Thus the allegation of paragraph 3 of the complaint bears a substantial relation to the controversy between the parties when it is considered contextually.
But it is otherwise with respect to the three portions of paragraph 5 of the complaint challenged by the defendant's motion to strike. When these particular allegations are reduced to simple terms, they merely charge that the defendant inflicted injury on the plaintiff's person and property by failing to perform an agreement embodied in its contract with the State Highway and Public Works Commission whereby the defendant promised to station flagmen and to place warning signs at such places as the engineer of the State Highway and Public Works Commission should designate while the road was being paved. To be sure, the allegations under scrutiny undertake in general terms to characterize the nonperformance of the promise as negligence. An omission to perform a contract obligation is never a tort, however, unless that omission is also the omission of a legal duty. Franceschi v. De Tord, 1 Cir., 71 F.2d 95; Attleboro Mfg. Co. v. Frankfort Marine, etc., Ins. Co., 1 Cir., 240 F. 573, 153 C.C.A. 377; Dantzler Lumber & Export Co. v. Columbia Casualty Co., 115 Fla. 541, 156 So. 116, 95 A.L.R. 258; Dice's Adm'r v. Zweigart's Adm'r, 161 Ky. 646, 171 S.W. 195, L.R.A.1916F, 1155; Tuttle v. George H. Gilbert Mfg. Co., 145 Mass. 169, 13 N.E. 465; Cox v. Mason, 89 App.Div. 219, 85 N.Y.S. 973; Frank v. Mandel, 76 App.Div. 413, 78 N.Y.S. 855; Dustin v. Curtis, 74 N.H. 266, 67 A. 220, 11 L.R.A., N.S., 504, 13 Ann.Cas. 169.
While it required the defendant to exercise ordinary care for the safety of the general public traveling over the highway on which the defendant was working, the law did not impose upon the defendant a duty to obey the orders of the engineer of the State Highway and Public Works Commission respecting the stationing of flagmen and the placing of warning signs. Any such obligation was simply a creature of contract. This being true, the portions of paragraph 5 of the complaint under attack aver a breach of a contract obligation, *554 and not a violation of a duty imposed by law. Hence, this matter has no substantial relation to the controversy between the parties as to whether the plaintiff suffered injury to her person and property on account of actionable negligence on the part of the defendant, and ought to have been stricken from the complaint pursuant to the defendant's motion.
Inasmuch as the complaint is so phrased as to give an exaggerated prominence to this irrelevant matter, we are constrained to hold that the retention of such matter in the pleading will cause harm or injustice to the defendant. Hinson v. Britt, 232 N.C. 379, 61 S.E.2d 185. The action is remanded to the Superior Court of Wake County with directions that an order be entered striking out the three portions of paragraph 5 of the complaint designated with particularity in the defendant's motion.
Error and remanded.
